home *** CD-ROM | disk | FTP | other *** search
- These are descriptions of how to compile and run the Java .java files using the
- Sun JDK, JBuilder/JDeveloper and Java Cafe IDEs. Other IDEs should be very similar.
-
- Sun Java Development Kit (JDK)
- ------------------------------
-
- 1. Create a special folder (e.g. C:\GIF) on your hard disk and then copy all
- of the workshop files and subfolders into it. The Java Development Kit should
- be installed on your PC and both the current directory and the standard classes
- library should be included in a CLASSPATH variable. You can check this by opening
- a DOS window and typing:
-
- C:\GIF>set
-
- The result should look something like this:
-
- .
- .
- PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.1.5\BIN
- CLASSPATH=.;C:\jdk1.1.5\lib
- .
- .
-
- 2. To recompile the first example (Example1.java in the ex1 directory) then type:
-
- C:\GIF>cd ex1
- C:\GIF\ex1>build
-
- This should recompile the library files into the ex1 directory, then recompile the
- Example1.java source.
-
- 3. You can re-compile the other example in the same way.
-
-
- Oracle JDeveloper/Inprise(Borland) JBuilder
- -------------------------------------------
-
- 1. Create a new empty project on your hard drive. Copy into it all example source code file
- (e.g. Example1.java in ex1) and *all* the .java files in the "lib" directory.
-
- 2. Open the one of the .java files in a text editor and copy the contents to the
- clipboard.
-
- 3. Choose "File/New" from the menu and create a new class with an appropriate name (e.g.
- if you have just copied the contents of the GIFImage.java file, then call the new class
- "GIFImage") and without a package name
-
- 4. Replace all of the code in the .java file that is created with the code you
- have on the clipboard.
-
- 5. Repeat these two steps for all of the other .java files.
-
- 6. Build all files and run the project.
-
-
-
- Java Cafe
- ---------
-
- 1. Create a folder called c:\GIF on your hard disk and start Cafe PDE
-
- 2. Create a new empty project
-
- 3. Save the project to your new folder (c:\GIF)
-
- 4. Choose "Insert/Files into project..." from the menu and insert the
- all the .java files from the "lib" directory into the project
-
- 6. Build all files and run the project
-